package 剑指Offer;

public class Offer64_求1加到n {
    int res = 0;

    public int sumNums(int n) {
        boolean tmp = (n > 1) && (sumNums(n - 1) > 0);//tmp值用不到，只是为了使得后面的语句进行;
        res = res + n;
        return res;
    }
}
